<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		#main {
			border: 1px solid #CCC;
			padding: 5px;
		}

		.nowrap,
		.wrap,
		.wrap_reverse {
			width: 500px;
			display: flex;
			flex-direction: row;
			margin-bottom: 15px;
			background-color: antiquewhite;
			gap: 10px;
			position: relative;
		}

		.nowrap {
			flex-wrap: nowrap;
		}
		.nowrap::after{
			position: absolute;
			right: 0;
			transform: translateX(100%);
			content: "flex-wrap: nowrap";
		}

		.wrap {
			flex-wrap: wrap;
		}
		.wrap::after{
			position: absolute;
			right: 0;
			transform: translateX(100%);
			content: "flex-wrap: wrap";
		}

		.wrap_reverse {
			flex-wrap: wrap-reverse;
		}
		.wrap_reverse::after{
			position: absolute;
			right: 0;
			transform: translateX(100%);
			content: "flex-wrap: wrap-reverse";
		}

		.nowrap div,
		.wrap div,
		.wrap_reverse div {
			width: 70px;
			height: 50px;
			border: 1px solid black;
		}
	</style>
</head>

<body>
	<div id="main">
		<div class="nowrap">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
			<div>10</div>
		</div>
		<div class="wrap">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
			<div>10</div>
		</div>
		<div class="wrap_reverse">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
			<div>10</div>
		</div>
	</div>
</body>

</html>